package com.zy.design.ddd.domain.wallet.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author zhaoyi
 * @date 2021/2/5 16:13
 */
@Data
@AllArgsConstructor
public class VirtualWalletEntity {

    private Long id;
    private BigDecimal balance = BigDecimal.ZERO;
    //是否允许透支
    private boolean isAllowedOverdraft = true;
    //可用透支额
    private BigDecimal overdraftAmount = BigDecimal.ZERO;
    //冻结额
    private BigDecimal frozenAmount = BigDecimal.ZERO;

}
